var app = getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
    tell:[],
    time:[],
    text:'nihao',
    img_url:'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1535517206419&di=134a7285d082a14b1489dee7f25fcee0&imgtype=0&src=http%3A%2F%2Fimg.zcool.cn%2Fcommunity%2F0117e2571b8b246ac72538120dd8a4.jpg%401280w_1l_2o_100sh.jpg'
  },
  url1:function(){
    wx.redirectTo({
      url: '../home/home',
    })
  },
  setTouchMove:function(e){
    var that = this
    app.setTouchMove(e,that)
  },
  one_num:function(e){
    var xid = e.target.dataset.xid
    var tid = e.target.dataset.tid
    var fid = e.target.dataset.fid
    var num = e.target.dataset.num
    var time = e.target.dataset.time
    wx.redirectTo({
      url: '../dingdan/dingdan?xid='+xid+'&fid='+fid+'&tid='+tid+'&num='+num+'&time='+time,
    })
  },
  two_num:function(e){
    var xid = e.target.dataset.xid
    var tid = e.target.dataset.tid
    var fid = e.target.dataset.fid
    var num = e.target.dataset.num
    var time = e.target.dataset.time
    wx.redirectTo({
      url: '../dingdan/dingdan?xid=' + xid + '&fid=' + fid + '&tid=' + tid + '&num=' + num + '&time=' + time,
    })
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var that = this
    this.setData({
      fid: this.options.fid,
      tid: this.options.tid,
      xid: this.options.xid
    })
    wx.request({
      url: 'https://wx.gjzy.com/weixin/Admin/Index/yy_sele',
      data:{
        fid:that.options.fid,
        tid:that.options.tid,
        xid:that.options.xid
      },
      success:function(res){
        console.log(res)
        that.setData({
          tell:res.data.data,
          time:res.data.time
        })
        console.log(res)
      }
    })
  },
  url_back:function(e){
    var fid = e.target.dataset.fid
    var tid = e.target.dataset.tid
    wx.redirectTo({
      url: '../geren/geren?tid='+tid+'&&fid='+fid
    })
  },
  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {
    
  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
    
  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {
    
  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {
    
  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {
    
  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {
    
  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
    
  }
})